<?php
header('content-type:text/html;charset=utf-8');
include "config.php";
$id=$_GET['id'];
$sql="delete from user where id={$id}";

if($mysqli->query($sql)){
    echo "<script>location='index.php'</script>";
}
?>